﻿/*
 * 2023/3/28
 * 产品-SPU
 * 
 * **/
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.Ph5_2009A.NewShopping.Domain
{
    [Table("ProductInfo")]
    public class ProductInfoModel : AudtiField<Guid>
    {
        /// <summary>
        /// 品牌ID
        /// </summary>
        public Guid? BrandId { get;set ; }
        
        /// <summary>
        /// 分类ID
        /// </summary>
        public Guid? CategoryId { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        [Display(Name ="店铺ID")]
        public Guid? StoreId { get; set; }

        /// <summary>
        /// 总销量数
        /// </summary>
        public int SaleCount { get; set; }

        /// <summary>
        /// 总评论数
        /// </summary>
        public int CommentCount { get; set; }

        /// <summary>
        /// 封面图片
        /// </summary>
        public string? ConvetImage { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string? Title { get; set; }

        /// <summary>
        /// 产品编码
        /// </summary>
        public string? Code { get; set; }

        /// <summary>
        /// 商品描述
        /// </summary>
        public string? Description { get; set; }

        /// <summary>
        /// 是否自营
        /// </summary>
        public bool? IsSelf { get; set; } = true;

        /// <summary>
        /// 是否虚拟物品
        /// </summary>
        public bool IsVirtual { get; set; } = false;

        /// <summary>
        /// 预留字段
        /// 从左到右
        /// 第一位是特卖：100000
        /// 第二位是秒杀：110000
        /// 第三位...
        /// </summary>
        public string Flag { get; set; } = "000000"; 
    }
}
